﻿<%@ Page Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="Lien-He.aspx.cs" Inherits="Lien_He" %>

<%@ Register TagPrefix="cc1" Namespace="MSCaptcha" Assembly="MSCaptcha" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title><asp:Literal runat="server" ID="ltrTieude"> </asp:Literal>
    - <%=Common.tieude %></title>
    <link rel="stylesheet" type="text/css" href="CSS/style-lienhe.css">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="left-content">
                <div class="lh-content-row">
                    <div class="lb-content-col-1">
                    </div>
                    <div class="lb-content-col-2">
                        <p>
                            Xin vui lòng <b>KHÔNG</b> gửi sản phẩm tại đây</p>
                    </div>
                </div>
                <div class="lh-content-row">
                    <div class="lb-content-col-1">
                        Người gởi <font color="red"><b>(*)</b></font></div>
                    <div class="lb-content-col-2">
                        <asp:TextBox ID="txtNguoiGoi" MaxLength="100" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ValidationGroup="LienHe" ID="RequiredFieldValidator1"
                            runat="server" SetFocusOnError="True" ControlToValidate="txtNguoiGoi" Display="Dynamic"
                            ForeColor="Red"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="lh-content-row">
                    <div class="lb-content-col-1">
                        Địa chỉ <font color="red"><b>(*)</b></font>
                    </div>
                    <div class="lb-content-col-2">
                        <asp:TextBox ID="txtDiaChi" MaxLength="200" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ValidationGroup="LienHe" ID="RequiredFieldValidator2"
                            runat="server" SetFocusOnError="True" ControlToValidate="txtDiaChi" Display="Dynamic"
                             ForeColor="Red"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="lh-content-row">
                    <div class="lb-content-col-1">
                        Email <font color="red"><b>(*)</b></font>
                    </div>
                    <div class="lb-content-col-2">
                        <asp:TextBox ID="txtEmail" MaxLength="200" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="regEmail" ValidationGroup="LienHe" ControlToValidate="txtEmail"
                            Text="Lỗi Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            runat="server" ForeColor="Red" />
                    </div>
                </div>
                <div class="lh-content-row">
                    <div class="lb-content-col-1">
                        Điện thoại
                    </div>
                    <div class="lb-content-col-2">
                        <asp:TextBox ID="txtDienThoai" MaxLength="12" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ValidationGroup="LienHe" ID="RegularExpressionValidator1" runat="server" 
                            ErrorMessage="Lỗi số điện thoại" ControlToValidate="txtDienThoai" ValidationExpression="\d+"></asp:RegularExpressionValidator>
                    </div>
                </div>
                <div class="lh-content-row">
                    <div class="lb-content-col-1">
                        Nội dung <font color="red"><b>(*)</b></font>
                    </div>
                    <div class="lb-content-col-2">
                        <asp:TextBox ID="txtNoiDung" MaxLength="500" TextMode="MultiLine" runat="server"
                            Font-Names="Times New Roman" Font-Size="Small"></asp:TextBox>
                        <div>
                            <asp:RequiredFieldValidator ValidationGroup="LienHe" ID="RequiredFieldValidator7"
                                runat="server" SetFocusOnError="True" ControlToValidate="txtNoiDung" Display="Dynamic"
                                 ForeColor="Red"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                </div>
                <div class="lh-content-row">
                    <div class="lb-content-col-1">
                        Mã xác minh
                    </div>
                    <div class="lb-content-col-2">
                        <cc1:CaptchaControl ID="CaptchaControl" runat="server" CaptchaBackgroundNoise="None"
                            CaptchaLength="6" CaptchaHeight="40" CaptchaWidth="150" CaptchaLineNoise="None"
                            CaptchaMinTimeout="5" />
                        <asp:ImageButton ID="ImageBtnRefresh" ImageUrl="~/Images/refresh.png"
                            runat="server" OnClick="ImageBtnRefresh_Click" />
                        <asp:TextBox ID="txtCapcha" MaxLength="50" runat="server"></asp:TextBox>
                    </div>
                </div>
                <div class="lh-content-row">
                    <div class="lb-content-col-1">
                    </div>
                    <div class="lb-content-col-2">
                        <asp:Button ID="BtnGui" ValidationGroup="LienHe" CssClass="btn" Text="GỬI LIÊN HỆ" runat="server" OnClick="BtnGui_Click" />
                        <asp:Button ID="BtnHuy" CssClass="btn" Text="HỦY BỎ" runat="server" OnClick="BtnHuy_Click" />
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <!-- end lienhe-content -->
    <dx:QuangCaoRight ID="quangcaoRight" runat="server" />
    <script type="text/javascript">
        $(".ul-menu-bar li a").each(function () {
            if ($(this).text() === "LIÊN HỆ") {
                $(this).addClass("title-black");
            }
        });
    </script>
</asp:Content>
